package com.uphone.kingmall.bean;

import java.util.List;

/**
 * <pre>
 *     author : radish
 *     e-mail : 15703379121@163.com
 *     time   : 2019/3/16
 *     desc   :
 * </pre>
 */
public class GoodsDetailBean {


    /**
     * msg : ok
     * code : 0
     * goods : {"goodsId":1,"goodsName":"优质商品","goodsMainImg":"http://192.168.1.251:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg","basePrice":123,"postFee":0,"postType":0,"goodsState":1,"shopOwnerId":2,"goodsType":1,"giveScore":12,"yueDeductFee":10,"goodsSaleNum":0,"commentNum":2,"shopPhone":"1111","collectState":0,"imgs":[{"id":6,"img":"http://192.168.1.251:8082/upload/images/goods/3a5f12c995384442830241802e78f52e.jpg"}],"props":[{"propName":"长度","prop":[{"goodsPropId":1,"addFee":1,"goodsPropVal":"300"},{"goodsPropId":2,"addFee":2,"goodsPropVal":"400"}]}],"goodsDesc":"http://192.168.1.251:8082/share/goodsDesc.html?goodsId=1","yueDeduct":10}
     */

    private String msg;
    private int code;
    private GoodsBean goods;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public static class GoodsBean {
        /**
         * goodsId : 1
         * goodsName : 优质商品
         * goodsMainImg : http://192.168.1.251:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg
         * basePrice : 123
         * postFee : 0
         * postType : 0
         * goodsState : 1
         * shopOwnerId : 2
         * goodsType : 1
         * giveScore : 12
         * yueDeductFee : 10
         * goodsSaleNum : 0
         * commentNum : 2
         * shopPhone : 1111
         * collectState : 0
         * imgs : [{"id":6,"img":"http://192.168.1.251:8082/upload/images/goods/3a5f12c995384442830241802e78f52e.jpg"}]
         * props : [{"propName":"长度","prop":[{"goodsPropId":1,"addFee":1,"goodsPropVal":"300"},{"goodsPropId":2,"addFee":2,"goodsPropVal":"400"}]}]
         * goodsDesc : http://192.168.1.251:8082/share/goodsDesc.html?goodsId=1
         * yueDeduct : 10
         */

        private int goodsId;
        private String goodsName;
        private String goodsMainImg;
        private Double basePrice;
        private Double postFee;
        private int postType;
        private int goodsState;
        private int shopOwnerId;
        private int goodsType;
        private int giveScore;
        private int repertoryTim;
        private int repertoryNum;
        private Double yueDeductFee;
        private int goodsSaleNum;
        private int commentNum;
        private String shopPhone;
        private int collectState;
        private String goodsDesc;
        private Double yueDeduct;
        private Double jiFenDeductFee;
        private Double installationFee;
        private List<ImgsBean> imgs;
        private List<PropsBean> props;

        public Double getInstallationFee() {
            return installationFee;
        }

        public void setInstallationFee(Double installationFee) {
            this.installationFee = installationFee;
        }

        public Double getJiFenDeductFee() {
            return jiFenDeductFee;
        }

        public void setJiFenDeductFee(Double jiFenDeductFee) {
            this.jiFenDeductFee = jiFenDeductFee;
        }

        public int getRepertoryTim() {
            return repertoryTim;
        }

        public void setRepertoryTim(int repertoryTim) {
            this.repertoryTim = repertoryTim;
        }

        public int getRepertoryNum() {
            return repertoryNum;
        }

        public void setRepertoryNum(int repertoryNum) {
            this.repertoryNum = repertoryNum;
        }

        public GoodsBean(GoodsListBean.DataBean bean) {
            goodsId = bean.getGoodsId();
            goodsType = 4;
            goodsName = bean.getGoodsName();
            goodsMainImg = bean.getGoodsMainImg();
            basePrice = bean.getGoodsPrice();
            goodsSaleNum = bean.getGoodsSaleNum();
            props = bean.getProps();

        }

        public GoodsBean(HaggleDetailBean.HaggleInfoBean bean) {
            goodsId = bean.getGoodsId();
            goodsName = bean.getGoodsName();
            goodsMainImg = bean.getGoodsMainImg();
            postFee = bean.getOrderPostFee();
            basePrice = bean.getGoodsPrice();
        }

        public int getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(int goodsId) {
            this.goodsId = goodsId;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public String getGoodsMainImg() {
            return goodsMainImg;
        }

        public void setGoodsMainImg(String goodsMainImg) {
            this.goodsMainImg = goodsMainImg;
        }

        public Double getBasePrice() {
            return basePrice;
        }

        public void setBasePrice(Double basePrice) {
            this.basePrice = basePrice;
        }

        public Double getPostFee() {
            return postFee;
        }

        public void setPostFee(Double postFee) {
            this.postFee = postFee;
        }

        public int getPostType() {
            return postType;
        }

        public void setPostType(int postType) {
            this.postType = postType;
        }

        public int getGoodsState() {
            return goodsState;
        }

        public void setGoodsState(int goodsState) {
            this.goodsState = goodsState;
        }

        public int getShopOwnerId() {
            return shopOwnerId;
        }

        public void setShopOwnerId(int shopOwnerId) {
            this.shopOwnerId = shopOwnerId;
        }

        public int getGoodsType() {
            return goodsType;
        }

        public void setGoodsType(int goodsType) {
            this.goodsType = goodsType;
        }

        public int getGiveScore() {
            return giveScore;
        }

        public void setGiveScore(int giveScore) {
            this.giveScore = giveScore;
        }

        public Double getYueDeductFee() {
            return yueDeductFee;
        }

        public void setYueDeductFee(Double yueDeductFee) {
            this.yueDeductFee = yueDeductFee;
        }

        public int getGoodsSaleNum() {
            return goodsSaleNum;
        }

        public void setGoodsSaleNum(int goodsSaleNum) {
            this.goodsSaleNum = goodsSaleNum;
        }

        public int getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public String getShopPhone() {
            return shopPhone;
        }

        public void setShopPhone(String shopPhone) {
            this.shopPhone = shopPhone;
        }

        public int getCollectState() {
            return collectState;
        }

        public void setCollectState(int collectState) {
            this.collectState = collectState;
        }

        public String getGoodsDesc() {
            return goodsDesc;
        }

        public void setGoodsDesc(String goodsDesc) {
            this.goodsDesc = goodsDesc;
        }

        public Double getYueDeduct() {
            return yueDeduct;
        }

        public void setYueDeduct(Double yueDeduct) {
            this.yueDeduct = yueDeduct;
        }

        public List<ImgsBean> getImgs() {
            return imgs;
        }

        public void setImgs(List<ImgsBean> imgs) {
            this.imgs = imgs;
        }

        public List<PropsBean> getProps() {
            return props;
        }

        public void setProps(List<PropsBean> props) {
            this.props = props;
        }

        public static class ImgsBean {
            /**
             * id : 6
             * img : http://192.168.1.251:8082/upload/images/goods/3a5f12c995384442830241802e78f52e.jpg
             */

            private int id;
            private String img;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }
        }

        public static class PropsBean {
            /**
             * propName : 长度
             * prop : [{"goodsPropId":1,"addFee":1,"goodsPropVal":"300"},{"goodsPropId":2,"addFee":2,"goodsPropVal":"400"}]
             */

            private String propName;
            private List<PropBean> prop;

            public String getPropName() {
                return propName;
            }

            public void setPropName(String propName) {
                this.propName = propName;
            }

            public List<PropBean> getProp() {
                return prop;
            }

            public void setProp(List<PropBean> prop) {
                this.prop = prop;
            }

            public static class PropBean {
                /**
                 * goodsPropId : 1
                 * addFee : 1
                 * goodsPropVal : 300
                 */

                private int goodsPropId;
                private double addFee;
                private String goodsPropVal;
                private int isSelect;

                public int isSelect() {
                    return isSelect;
                }

                public void setSelect(int select) {
                    isSelect = select;
                }

                public int getGoodsPropId() {
                    return goodsPropId;
                }

                public void setGoodsPropId(int goodsPropId) {
                    this.goodsPropId = goodsPropId;
                }

                public double getAddFee() {
                    return addFee;
                }

                public void setAddFee(double addFee) {
                    this.addFee = addFee;
                }

                public String getGoodsPropVal() {
                    return goodsPropVal;
                }

                public void setGoodsPropVal(String goodsPropVal) {
                    this.goodsPropVal = goodsPropVal;
                }
            }
        }
    }
}
